home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
vampso1a
/
dock.frm
< prev
next >
Wrap
Text File
|
1999-08-29
|
2KB
|
76 lines
VERSION 5.00
Begin VB.Form Form1
BackColor = &H80000007&
BorderStyle = 5 'Sizable ToolWindow
Caption = "Vampire Software: Docking Example"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 300
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Dock"
Height = 615
Left = 240
TabIndex = 1
Top = 2520
Width = 4215
End
Begin VB.Label Label2
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
Caption = "Http://zap.to/vampsoft/"
ForeColor = &H00000000&
Height = 255
Left = 240
TabIndex = 2
Top = 2160
Width = 4215
End
Begin VB.Label Label1
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
Caption = $"Dock.frx":0000
ForeColor = &H80000008&
Height = 845
Left = 120
TabIndex = 0
Top = 120
Width = 4455
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim ScreenX, ScreenY As Integer
ScreenY = Screen.Height
ScreenX = Screen.Width
If Me.Top <= 200 Then Me.Top = 0
If Me.Left <= 200 Then Me.Left = 0
If Me.Left >= ScreenX - Me.Width - 200 Then
Me.Left = ScreenX - Me.Width
End If
If Me.Top >= ScreenY - Me.Height - 200 Then
Me.Top = ScreenY - Me.Height - 420
End If
End Sub